package com.kdzy.lshy.common.service;

import com.alibaba.fastjson.JSONObject;
import com.kdzy.lshy.common.common.WeChat;
import com.kdzy.lshy.common.utils.WeChatUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: hanrui
 * @Date: 2018/6/16
 * @Description:
 */

@Service(value = "weChatService")
public class WeChatService {

    @Autowired
    private WeChat wechat;

    public Object getWeChatInfo(String code){

        JSONObject result_json = WeChatUtils.getOpenid(code,wechat);

        return result_json;
    }
}
